package com.arcbbs.service;

import com.arcbbs.entity.SessionWebUserDto;
import com.arcbbs.entity.UserInfo;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

@Service
public interface UserInfoService {
    List<UserInfo> select();

    void register(String email, String emailCode, String nickName, String password);

    SessionWebUserDto login(String email, String password, String ip);

    void resetpwd(String email, String password, String emailcode, String checkcode);

    UserInfo selectbyuserid(String userId);

    void update(UserInfo userInfo, MultipartFile avatar);
}
